package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.StorageRecord;
import com.ktjiaoyu.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
    public List<Supplier> findAll();

    public Supplier findById(Long id);

    public int insert(Supplier Supplier);

    public int update(Supplier Supplier);

    public Supplier getBySupCode(String srCode);

    public List<Supplier> getPage(@Param("entity")Supplier entity, @Param("offset") Integer offset, @Param("pageSize")Integer pageSize);

    public Long count(@Param("entity") Supplier entity);

    public int deleteById(Long id);
}
